<?php
namespace app\wxapp\controller;

use app\wxapp\controller;
// use wxapp\aes\WXBizDataCrypt;
use think\Validate;
use think\Db;


class Game extends Base
{   

    public function addPlayInfo()
    {   
        $time = input('time');
        $update['user_id']     = $this->userId;
        $update['time']        = $time;
        $update['is_success']  = $time =="10:00" ? 1 : 0;
        $update['create_time'] = time();
        if(Db::name('game_play_info')->insert($update)){
            $this->success("添加成功！");
        }
        $this->success("添加失败！");
    }
   

}